package com.kly.user.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.StatsTrafficDao;
import com.kly.user.db.entity.StatsTrafficEntity;
import com.kly.user.traffic.GavenTraffic;
import com.kly.user.traffic.UserActionsVariable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * User: yujianfu
 * Date: 2024-01-18
 * Time: 19:03:16.911
 */

@Repository
public class StatsTrafficDaoImpl extends AbstractBaseMapper<StatsTrafficEntity> implements StatsTrafficDao {

    @Override
    public List<UserActionsVariable> getUserVariables() {
        return getSqlSession().selectList(this.getStatement("getUserVariables"));
    }

    @Override
    public List<GavenTraffic> getTodayTrafficData() {
        return getSqlSession().selectList(this.getStatement("getTodayTrafficData"));
    }
}